#ifndef PROCESS_H
#define PROCESS_H

#include <QStringList>
#include <QProcess>
#include <QFile>
#include <QApplication>

#define SHOW "-show"
#define MSSHOW "-s"
#define MSPOWERPNT10 QString ("/microsoft office/Office10/pow1erpnt.exe")
#define MSPOWERPNT11 QString ("/microsoft office/Office11/powe1rpnt.exe")
#define MSPOWERPNT12 QString ("/microsoft office/Office12/powe1rpnt.exe")
#define MSPOWERPNT14 QString ("/microsoft office/Office14/powe1rpnt.exe")
#ifdef Q_WS_WIN
#define OOPOWERPNT QString ("/openoffice.org 3/program/soffice.exe")
#define LOPOWERPNT QString ("/libreoffice 3.5/program/simpress.exe")
#else
#define LOPOWERPNT "/usr/lib/libreoffice/program/soffice.bin" //YOU SHOULD set PARENT process!!!!!(for QProcess::kill normal working)
#define OOPOWERPNT "/usr/lib/ooffice/program/soffice.bin" //TODO SEARCH AND FOUND main-tree of path
#endif  // Q_WS_WIN

class Process : public QProcess {
public:
    Process (QObject * parent = 0);
    bool startMSPowerPoint (const QString& filePath);
    bool startPresentation (const QString& filePath);
    #ifdef Q_WS_WIN
        void terminate (void);
    #endif // Q_WS_WIN
};

#endif // PROCESS_H
